/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CU008.java
 *
 * Created on 03/11/2012, 12:50:45
 */
package victory;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

/**
 *
 * @author Enrique
 */
public class CU008 extends javax.swing.JPanel {

    /** Creates new form CU008 */
    public CU008() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        scp_participantes = new javax.swing.JScrollPane();
        tabla_participantes = new javax.swing.JTable();
        boton_bajaParticipante = new javax.swing.JButton();
        boton_volver = new javax.swing.JButton();
        boton_altaParticipante = new javax.swing.JButton();
        boton_modificarParticipante = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();

        setMinimumSize(new java.awt.Dimension(800, 600));
        setName("Form"); // NOI18N

        scp_participantes.setName("scp_participantes"); // NOI18N

        tabla_participantes.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "Nombre de Equipo/ Nombre Participante", "Correo Electrónico"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tabla_participantes.setName("tabla_participantes"); // NOI18N
        scp_participantes.setViewportView(tabla_participantes);

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(victory.VictoryApp.class).getContext().getResourceMap(CU008.class);
        boton_bajaParticipante.setText(resourceMap.getString("boton_bajaParticipante.text")); // NOI18N
        boton_bajaParticipante.setName("boton_bajaParticipante"); // NOI18N

        boton_volver.setText(resourceMap.getString("boton_volver.text")); // NOI18N
        boton_volver.setName("boton_volver"); // NOI18N

        boton_altaParticipante.setText(resourceMap.getString("boton_altaParticipante.text")); // NOI18N
        boton_altaParticipante.setName("boton_altaParticipante"); // NOI18N
        boton_altaParticipante.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_altaParticipanteActionPerformed(evt);
            }
        });

        boton_modificarParticipante.setText(resourceMap.getString("boton_modificarParticipante.text")); // NOI18N
        boton_modificarParticipante.setName("boton_modificarParticipante"); // NOI18N

        jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(150, 150, 150)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(scp_participantes)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(boton_altaParticipante)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(boton_modificarParticipante)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(boton_bajaParticipante)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(boton_volver))))
                .addContainerGap(142, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(13, 13, 13)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(scp_participantes, javax.swing.GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(boton_altaParticipante)
                    .addComponent(boton_modificarParticipante)
                    .addComponent(boton_bajaParticipante)
                    .addComponent(boton_volver))
                .addGap(331, 331, 331))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void boton_altaParticipanteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_altaParticipanteActionPerformed
        // TODO add your handling code here:
        this.removeAll();
        this.setLayout(new FlowLayout());
        this.add(new CU009(), BorderLayout.CENTER);
        this.updateUI();
    }//GEN-LAST:event_boton_altaParticipanteActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton boton_altaParticipante;
    private javax.swing.JButton boton_bajaParticipante;
    private javax.swing.JButton boton_modificarParticipante;
    private javax.swing.JButton boton_volver;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JScrollPane scp_participantes;
    private javax.swing.JTable tabla_participantes;
    // End of variables declaration//GEN-END:variables
}
